<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<{$Charset}>" />
<meta name ="keywords" content="求购,供应,<{$sitename}>,<{$tradeInfo.Name}>,<{$tradeInfo.CompanyName}>" />
<meta name="Author" content="stevenchow811@163.com" />
<meta name="generator" content="<{$UaVersion}>" />
<meta name="description" content="产品库,<{$tradeInfo.Description|replace:"\r\n":""|truncate:150}>" /> 
<title><{$tradeInfo.Name|replace:"\r\n":","}><{if $tradeInfo.TradePicture!=""}>(有图片)<{/if}>&laquo;<{$sitetitle}></title>
<link href="<{$CSS_PATH}>css/style.css" rel="stylesheet" type="text/css" />
<link href="<{$CSS_PATH}>css/offer.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
/*选项卡1*/
#Tab1{
width:460px;
margin:0px;
padding:0px;
margin:0 auto;}
/*菜单class*/
.Menubox {
width:100%;
background:url(<{$tpl_img_path}>default/bg_div.gif);
height:28px;
line-height:28px;
}
.Menubox ul{
margin:0px;
padding:0px;
}
.Menubox li{
 float:left;
 display:block;
 cursor:pointer;
 width:114px;
 text-align:center;
 color:#949694;
 font-weight:bold;
 }
.Menubox li.hover{
 padding:0px;
 background:#fff;
 width:116px;
 border-left:1px solid #A8C29F;
 border-top:1px solid #A8C29F;
 border-right:1px solid #A8C29F;
background:url(<{$tpl_img_path}>default/bg_li.gif);
 color:#739242;
 font-weight:bold;
 height:27px;
line-height:27px;
}
.Contentbox{
 clear:both;
 margin-top:0px;
 border:1px solid #A8C29F;
 border-top:none;
 height:181px;
 text-align: left;
 padding-top:8px;
}
-->
</style>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var con=document.getElementById("con_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  con.style.display=i==cursel?"block":"none";
 }
}
//-->
</script>
<script language=javascript>
function getExpireStr(exp_date){
	var urodz= new Date(exp_date);
	var s="离到期";
	var now = new Date();
	var ile = urodz.getTime() - now.getTime();
	var dni = Math.floor(ile / (1000 * 60 * 60 * 24));
	if (dni > 1)
	return (""+s+"还有"+dni +"天");
	else if (dni == 1)
	return "只有2天啦!";
	else if (dni == 0)
	return "只有1天啦!";
	else
	return "<font color=red>该信息已经过期!</font>";
}
</script>
<script src="<{$CSS_PATH}>js/jquery.js"></script>
<script>
$(document).ready(function(){        //DOM的onload事件处理函数     
  $("#favor").click(function(){          //当按钮button被点击时的处理函数     
    postdata();                                      //button被点击时执行postdata函数     
  });     
});
function postdata(){                             //提交数据函数     
  $.ajax({                                                 //调用jquery的ajax方法     
    type: "POST",                                     //设置ajax方法提交数据的形式     
    url: "detail.php",                                      //把数据提交到ok.php     
    data: "action=favor&type_id=<{$tradeInfo.trade_type}>&id=<{$tradeInfo.TradeId}>",    //输入框writer中的值作为提交的数据     
    success: function(msg){                 //提交成功后的回调，msg变量是ok.php输出的内容。     
      alert("已经加入收藏夹");                     //如果有必要，可以把msg变量的值显示到某个DIV元素中     
    }     
  });     
}
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="<{$page_width}>" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><{include file="`$ThemeName`/element.header.html"}></td>
  </tr>
</table>
<table width="<{$page_width}>" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!-- a*d position --></td>
  </tr>
</table>
<table width="<{$page_width}>" height="30" border="0" align="center" cellPadding="0" cellSpacing=0 class="corhui">
  <tbody>
    <tr> 
      <td width=785><img height=13 src="<{$tpl_img_path}>default/icon1.gif" 
      width=14> 您当前位置： <a class="link12" href="<{$SiteUrl}>"><{$sitename}></a> 
        &gt; <a class=link12 href="<{$SiteUrl}>offer/list.php">供求信息</a> &gt; <{$tradeInfo.Name|strip_tags}> 
      </td>
    </tr>
  </tbody>
</table>

<table width="<{$page_width}>" border="0" align="center" cellpadding="1" cellspacing="1" class="linegreen">
  <tr> 
    <td height="25" colspan="2" class="corgreen03"><div align="center"><h4>【
        <{$tradeInfo.Name|strip_tags}>
      】</h4></div></td>
  </tr>
  <tr class="corgreen02">
    <td width="50%" height="25"> 
	<div align="center" class="font14blak">基本信息:</div></td>
    <td><div align="center" class="font14blak">联系方式:</div></td>
  </tr>
  <tr> 
    <td>
	<table width="90%" height="76" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="29%" height="25" class="font14yellow">发布时间： </td>
          <td width="71%"><{$tradeInfo.PublishDate|date_format:"%Y-%m-%d"}></td>
        </tr>
        <tr> 
          <td colspan="2" background="<{$tpl_img_path}>default/dian.gif" height="3"></td>
        </tr>
        <tr> 
          <td height="25" class="font14yellow">有效日期： </td>
          <td><{$tradeInfo.ExpireDate|date_format:"%Y-%m-%d"}>,<script>document.write(getExpireStr("<{$tradeInfo.ExpireDate|date_format:"%m/%d/%Y"}>"));</script></td>
        </tr>
        <tr> 
            <td colspan="2" background="<{$tpl_img_path}>default/dian.gif" height="3"></td>
        </tr>
        <tr> 
          <td height="25" class="font14yellow">所属地区： </td>
          <td><a href="<{$SiteUrl}>offer/list.php?city=<{$tradeInfo.province_name|urlencode}>"><{$tradeInfo.province_name}></a><{if $tradeInfo.city_name}>-<a href="<{$SiteUrl}>offer/list.php?city=<{$tradeInfo.city_name|urlencode}>"><{$tradeInfo.city_name}></a><{/if}></td>
        </tr>  
		<tr> 
            <td colspan="2" background="<{$tpl_img_path}>default/dian.gif" height="3"></td>
        </tr>
        <tr> 
          <td height="25" class="font14yellow">关键词： </td>
          <td><{$tradeInfo.keywords}></td>
        </tr>
        <tr> 
            <td colspan="2" background="<{$tpl_img_path}>default/dian.gif" height="3"></td>
        </tr>
      </table>
      </td>
    <td class="corhui">
	<{if $IfTradeOpen==1 || $UalinkUser.username!=""}>
	<{include file="`$ThemeName`/element.showcompanyinfo.html"}>
	<{else}>
	<{include file="`$ThemeName`/element.loginform.html"}>
	<{/if}>
	</td>
  </tr>
  <tr>
    <td height="2" colspan="2" class="corgreen03"></td>
  </tr>
  <tr> 
    <td height="25" colspan="2" class="corgreen02"> 
	<div align="center" class="font14blak">详细说明</div></td>
  </tr>
  <tr> 
    <td colspan="2">
	<table width="100%" border="0" cellspacing="2" cellpadding="2">
        <tr>
          <td width="72%">
		  <div id="trade" class="box">
		  <table width="100%" border="0" cellpadding="2" cellspacing="2" style="TABLE-LAYOUT: fixed">
              <tr> 
                <td height="25" class="font14yellow">【 图片及描述 】</td>
              </tr>
              <tr> 
                <td class="font12"> 
                  <p><{$tradeInfo.Description|strip_tags|nl2br}></p>
				  <{if $tradeInfo.TradePicture!=""}>
                  <div id="pic" align="center">
                  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="400">
				<param name="movie" value="<{$SiteUrl}>media/flash/show.swf?image=<{if $tradeInfo.TradePicture!=""}><{$SiteUrl}>media/attachment/<{$tradeInfo.TradePicture}><{else}><{$SiteUrl}>media/`$ThemeName`/big.jpg<{/if}>&imageLink=<{$SiteUrl}>attachment.php?source=<{$tradeInfo.TradePicture}>">  
				<embed src="<{$SiteUrl}>media/flash/show.swf?image=<{if $tradeInfo.TradePicture!=""}><{$SiteUrl}>media/attachment/<{$tradeInfo.TradePicture}><{else}><{$SiteUrl}>media/`$ThemeName`/big.jpg<{/if}>" width="500" height="400" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
				</object></div>
				<{/if}>
				</td>
              </tr>
			  <tr>
			  <td>
			  <div align="center"><input type="submit" name="favor" id="favor" value="收藏此信息" />
			  </div>
			  </td>
			  </tr>
              <tr>
                <td>
					<div id="Tab1">
						<div class="Menubox">
						<ul>
						   <li id="one1" onClick="setTab('one',1,4)"  class="hover"><span class="font14yellow">【 参数说明 】</span></li>
<!-- 						   <li id="one2" onclick="setTab('one',2,4)" >用户评论</li>
						   <li id="one3" onclick="setTab('one',3,4)">发表评论</li>   
						   <li id="one4" onclick="setTab('one',4,4)">我要举报</li>
 -->						</ul>
						</div>
						 <div class="Contentbox">  
						   <div id="con_one_1" class="hover">
							<ul>
							<{foreach from=$ObjectParams name=op item=tparam}>
						   <li><{$tparam.title}>:<{assign var="param_name" value="`$tparam.name`"}><{$tradeInfo.TradeExtends.$param_name}></li>
						   <{/foreach}>
						   </ul>
						   </div>
						   <div id="con_one_2" style="display:none">对该信息的评论</div>
						   <div id="con_one_3" style="display:none">请在这里填写您的评论</div>
						   <div id="con_one_4" style="display:none">如果您对该信息要举报</div> 
						 </div>
					</div>
				</td>
              </tr>
            </table>
			</div>
			</td>
			<{if $FineProducts}>
			  <td width="28%" valign="top" class="corhui">
			  <!--fine products -->
			  <{include file="`$ThemeName`/element.fineproducts.html"}>
			  <!--fine products:~ -->
				</td>
			<{/if}>
        </tr>
      </table></td>
  </tr>
</table>
<table width="<{$page_width}>" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><{include file="`$ThemeName`/element.foot.html"}></td>
  </tr>
</table>
</body>
</html>
